<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ page import="com.hddf.project.pojos.User"%>
<%@ page import="com.hddf.project.upload_cache.CacheService"%>
<!DOCTYPE html>
<html>
<head>
<%
	CacheService cas = CacheService.getInstance();
	User u = (User) request.getAttribute("user");
	String uuid = cas.addObj(u.getId());
%>
<title>项目修改</title>
<link href="/css/css.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="/jquery/jquery.cookie.js"></script>
<link rel="stylesheet" href="/controls/plUpload/jquery.plupload.queue/css/jquery.plupload.queue.css" type="text/css" media="screen" />
<script type="text/javascript" src="/controls/plUpload/plupload.full.min.js"></script>
<script type="text/javascript" src="/controls/plUpload/jquery.plupload.queue/jquery.plupload.queue.js"></script>
<script type="text/javascript" src="/controls/plUpload/i18n/zh_CN.js"></script>
<link rel="stylesheet" type="text/css" href="/controls/artDialog/skins/blue.css" />
<script type="text/javascript" src="/controls/artDialog/jquery.artDialog.js"></script>
<script type="text/javascript" src="/controls/artDialog/iframeTools.js"></script>
<script type="text/javascript" src="/controls/fresco/js/fresco/fresco.js"></script>
<link rel="stylesheet" type="text/css" href="/controls/fresco/css/fresco/fresco.css" />
<script type="text/javascript" src="/controls/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/js/global_param.js"></script>
<script type="text/javascript" src="/js/public.js"></script>
<script type="text/javascript" src="/js/public_other.js"></script>
<script type="text/javascript" src="/page/project/project_update.js"></script>
<script type="text/javascript" src="/page/project/project_update_upload.js"></script>
<script type="text/javascript">
	$(function() {
		showCategory.onload();
		uploadFunction($("#updateUuid").val());
		onloadProjectUpdate.onload();
	});
</script>
</head>
<body>
	<input type="hidden" id="updateUuid" value="<%=uuid%>" />
	<input type="hidden" id="projectId" value="<s:property value="project.id" />" />
	<iframe src="/top.html" scrolling="no" frameborder="0"></iframe>
	<div class="sz_box">
		<div class="sz_content">
			<!-------录入页------>
			<div class="sz_entry">
				<div class="sz_entry_top">
					<h1>项目信息</h1>
					<input type="hidden" id="yFristCategroyName" value="<s:property value="project.firstCategoryName" />" />
					<input type="hidden" id="ySecondCategroyName" value="<s:property value="project.secondCategoryName" />" />
					<input type="hidden" id="yThirdCategroyName" value="<s:property value="project.thirdCategoryName" />" />
					<div class="sz_entry_top_1">
						<span>一级分类</span>
						<ul id="firstCategory">
						</ul>
					</div>
					<div class="sz_entry_top_1">
						<span>二级分类</span>
						<ul id="secondCategory">
						</ul>
					</div>
					<div class="sz_entry_top_1">
						<span>三级分类</span>
						<ul id="thirdCategory">
						</ul>
					</div>
					<div class="sz_entry_top_1">
						<p></p>
						<span>所选类别</span>
						<ul id="xzCategory">
							<li id="fcCategoryId" style="cursor: pointer;font-weight: bold;color: #007eb8 !important;"></li>
							<li id="scCategoryId" style="cursor: pointer;font-weight: bold;color: #007eb8 !important;"></li>
							<li id="tcCategoryId" style="cursor: pointer;font-weight: bold;color: #007eb8 !important;"></li>
						</ul>
						<p></p>
					</div>
				</div>
				<div class="sz_entry_con">
					<h2>录入信息</h2>
					<div class="sz_entry_con_1">
						<p>
							<span>
								<font color="red">*&nbsp;</font>项目名称
							</span>
							<input name="projectName" type="text" id="projectName" value="<s:property value="project.name" />" />
						</p>
						<p>
							<span>领导批注</span>
							<strong><font color="blue"><s:iterator value="project.commentList">
										<s:property value="userName" />：<s:property value="content" />（<s:property value="updateTime.substring(0,19)" />）
										<br>
									</s:iterator></font></strong>
						</p>
						<p>
							<span>
								<font color="red">*&nbsp;</font>实施时间
							</span>
							<input name="implTime" type="text" id="implTime" value="<s:property value="project.impl_time" />" />
						</p>
						<p>
							<span>
								<font color="red">*&nbsp;</font>总投资
							</span>
							<input name="fund" type="text" id="fund" value="<s:property value="project.fund" />" />
							(单位：亿元)
						</p>
						<p>
							<span>
								<font color="red">*&nbsp;</font>主管部门
							</span>
							<input name="mgrDepart" type="text" id="mgrDepart" value="<s:property value="project.mgr_depart" />" />
						</p>
						<p>
							<span>建设主体</span>
							<input name="buildSide" type="text" id="buildSide" value="<s:property value="project.build_side" />" />
						</p>
						<p>
							<span>项目状态</span>
							<s:select list="#{'储备':'储备','在建':'在建','完成':'完成' }" listKey="key" listValue="value" theme="simple" name="plan" id="plan" value="#project.plan" />
							<input type="hidden" id="yPlan" value="<s:property value="project.plan" />" />
						</p>
						<p>
							<span>项目地点</span>
							<s:select list="#{'哈尔滨市':'哈尔滨市','道里区':'道里区','南岗区':'南岗区','道外区':'道外区','平房区':'平房区','松北区':'松北区','香坊区':'香坊区','呼兰区':'呼兰区','阿城区':'阿城区','双城区':'双城区'}" listKey="key" listValue="value" theme="simple"
								name="area" id="area" value="#project.area"
							/>
							<input type="hidden" id="yArea" value="<s:property value="project.area" />" />
						</p>
						<p>
							<span>资金来源</span>
							<textarea name="fundPlan" style=" height: 100px;width: 202px;float: left;margin-right: 10px;" id="fundPlan" onkeyup="this.value=this.value.slice(0, 500)">
								<s:property value="project.fund_plan" />
							</textarea>
							<font style="color: red;" size="4px">（单位：亿元；不能包含特殊符号。<br>如：<br>英文模式的： ! $ ( ) : ; ? ' "<br>中英文模式的： / \ + = @ # & *<br>）
							</font>
						</p>
						<p>
							<span>项目概况</span>
							<textarea name="description" cols="20" rows="25" id="description">
								<s:property value="project.description" />
							</textarea>
						</p>
						<p>
							<span>形象进度及完成投资情况</span>
							<textarea name="remarks" cols="20" rows="25" id="remarks">
								<s:property value="project.remarks" />
							</textarea>
						</p>
						<p>
							<span>备注</span>
							<textarea name="sign" cols="20" rows="25" id="sign">
								<s:property value="project.sign" />
							</textarea>
						</p>
						<p>
							<span>方案设计图</span>
							<strong class="imageClass"> <s:iterator value="project.imgList">
									<i id="srcImgId<s:property value="id"/>">
										<a href='<s:property value="imgSrc"/>' class='fresco' data-fresco-group='imgList' data-fresco-caption="<s:property value="imgName"/>">
											<img src="<s:property value="imgSrc"/>" />
										</a>
										<a class="btn_nr" href="javascript:deleteUpload(<s:property value="id"/>,2)">删除</a>
									</i>
								</s:iterator>
							</strong>
						</p>
						<div class="listClass">
							<s:if test="project.imgList.size()>0">
								<i>(点击图片查看大图)</i>
							</s:if>
							<s:else>
								<i>暂无</i>
							</s:else>
						</div>
						<div class="addUpload">
							<div id="imgUpload" style="height: 200px;"></div>
						</div>
						<p>
							<span>相关批件</span>
							<strong class="imageClass"> <s:iterator value="project.approvalList">
									<i id="srcApprovalId<s:property value="id"/>">
										<a href='<s:property value="approvalSrc"/>' class='fresco' data-fresco-group='approvalList' data-fresco-caption="<s:property value="approvalName"/>">
											<img src="<s:property value="approvalSrc"/>" />
										</a>
										<a class="btn_nr" href="javascript:deleteUpload(<s:property value="id"/>,4)">删除</a>
									</i>
								</s:iterator>
							</strong>
						</p>
						<div class="listClass">
							<s:if test="project.approvalList.size()>0">
								<i>(点击图片查看大图)</i>
							</s:if>
							<s:else>
								<i>暂无</i>
							</s:else>
						</div>
						<div class="addUpload">
							<div id="approvalUpload" style="height: 200px;"></div>
						</div>
						<p>
							<span>部门意见</span>
							<strong class="imageClass"> <s:iterator value="project.checkList">
									<i id="srcCheckId<s:property value="id"/>">
										<a href='<s:property value="checkSrc"/>' class='fresco' data-fresco-group='checkList' data-fresco-caption="<s:property value="checkName"/>">
											<img src="<s:property value="checkSrc"/>" />
										</a>
										<a class="btn_nr" href="javascript:deleteUpload(<s:property value="id"/>,5)">删除</a>
									</i>
								</s:iterator>
							</strong>
						</p>
						<div class="listClass">
							<s:if test="project.checkList.size()>0">
								<i>(点击图片查看大图)</i>
							</s:if>
							<s:else>
								<i>暂无</i>
							</s:else>
						</div>
						<div class="addUpload">
							<div id="checkUpload" style="height: 200px;"></div>
						</div>
						<p class="project_class">
							<span>上传三表</span>
							<%
								int tableNum = 0;
							%>
							<s:iterator value="project.tableList">
								<i id="srcTableId<s:property value="id"/>">
									<%
										tableNum += 1;
									%>
									<%
										if (tableNum != 1) {
									%>
									<p class="project_class">
										<span></span>
										<%
											}
										%>
										<strong><s:property value='tableName' /></strong>
										<a class="btn_nr" href="/app/project!jumpDocumentBrowsing?srcId=<s:property value='id' />&srcType=3" target="_blank">浏览</a>
										<a class="btn_nr" href="javascript:deleteUpload(<s:property value="id"/>,3)">删除</a>
									</p>
								</i>
							</s:iterator>
						</p>
						<div class="listClass">
							<%
								if (tableNum == 0) {
							%>
							<i>暂无</i>
							<%
								}
							%>
						</div>
						<div class="addUpload">
							<div id="tableUpload" style="height: 200px;"></div>
						</div>
						<p class="project_class">
							<span>项目内容说明书</span>
							<%
								int docNum = 0;
							%>
							<s:iterator value="project.docList">
								<i id="srcDocId<s:property value="id"/>">
									<%
										docNum += 1;
									%>
									<%
										if (docNum != 1) {
									%>
									<p class="project_class">
										<span></span>
										<%
											}
										%>
										<strong><s:property value='docName' /></strong>
										<a class="btn_nr" href="/app/project!jumpDocumentBrowsing?srcId=<s:property value='id' />&srcType=1" target="_blank">浏览</a>
										<a class="btn_nr" href="javascript:deleteUpload(<s:property value="id"/>,1)">删除</a>
									</p>
								</i>
							</s:iterator>
						</p>
						<div class="listClass">
							<%
								if (docNum == 0) {
							%>
							<i>暂无</i>
							<%
								}
							%>
						</div>
						<div class="addUpload">
							<div id="docUpload" style="height: 200px;"></div>
						</div>

						<p class="project_class">
							<span>项目视频</span>
							<%
								int videoNum = 0;
							%>
							<s:iterator value="project.videoList">
								<i id="srcVideoId<s:property value="id"/>">

									<%
										if (videoNum != 0) {
									%>
									<p class="project_class">
										<span></span>
										<%
											}
										%>
										<strong><s:property value='videoName' /></strong>
										<a class="btn_nr" href="<s:property value='videoSrc' />" target="_blank">浏览</a>
										<a class="btn_nr" href="javascript:deleteUpload(<s:property value="id"/>,6)">删除</a>
										<%
											if (videoNum != 0) {
										%>
									</p>
									<%
										}
									%>
									<%
										videoNum += 1;
									%>
								</i>
							</s:iterator>
						</p>
						<div class="listClass">
							<%
								if (videoNum == 0) {
							%>
							<i>暂无</i>
							<%
								}
							%>
						</div>
						<div class="addUpload">
							<div id="videoUpload" style="height: 200px;"></div>
						</div>

						<p class="project_class">
							<span>其他文件</span>
							<%
								int otherNum = 0;
							%>
							<s:iterator value="project.otherList">
								<i id="srcOtherId<s:property value="id"/>">

									<%
										if (otherNum != 0) {
									%>
									<p class="project_class">
										<span></span>
										<%
											}
										%>
										<s:if test="type==1">
											<a href='<s:property value="otherSrc"/>' class='fresco' data-fresco-group='otherList' data-fresco-caption="<s:property value="otherName"/>">
												<img src="<s:property value="otherSrc"/>" />
											</a>
										</s:if>
										<s:else>
											<strong><s:property value='otherName' /></strong>
										</s:else>
										<a class="btn_nr" href="javascript:deleteUpload(<s:property value="id"/>,7)">删除</a>
										<%
											if (otherNum != 0) {
										%>
									</p>
									<%
										}
									%>
									<%
										otherNum += 1;
									%>
								</i>
							</s:iterator>
						</p>
						<div class="listClass">
							<%
								if (otherNum == 0) {
							%>
							<i>暂无</i>
							<%
								}
							%>
						</div>
						<div class="addUpload">
							<div id="otherUpload" style="height: 200px;"></div>
						</div>

						<p>
							<a class="btn" href="javascript:void()">修改</a>
						</p>
					</div>
				</div>
			</div>
			<!-------录入页------>
		</div>
	</div>
	<iframe src="/footer.html" class="footer_con_ye" scrolling="no" frameborder="0"></iframe>
</body>
</html>
